package com.shawn.spring.boot.mybatis.service;

import com.github.pagehelper.PageInfo;
import com.shawn.spring.boot.mybatis.entity.User;

public interface UserService {

  void register(User user);

  User login(String username, String password);

  PageInfo<User> findWithPageHelper(int pageNum, int pageSize);

  PageInfo<User> findWithRowBounds(int pageNum, int pageSize);

  PageInfo<User> findWithParams(int pageNum, int pageSize);
}
